//
//  State_InGameLayer.h
//  FunnyRacing
//
//  Created by vy phan on 15/03/2011.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "cocos2d.h"
#import "Game.h"
#import "Define.h"
#import "Car.h"
#import "CGPointExtension.h"
#import "Map.h"
#import "DPad.h"
#import "MyContactListener.h"
#import "Box2D.h"
#import "GLES-Render.h"

static int screenW;
static int screenH;
@interface State_InGameLayer : CCLayer {
	DPad* dpad;
	Car* car;
	Map* map;
	CGPoint oldPoint;
	// box 2d engine
    b2World *_world;
    GLESDebugDraw *_debugDraw;
	MyContactListener *_contactListener;
	
}
- (void)controlCar:(ccTime)dt; // who control the car, player or computer
- (void)addBoxBodyForSprite:(CCSprite *)sprite;
@end
